package com.xx.sg.controller;

import com.xx.sg.own.entity.CheckPoint;
import com.xx.sg.own.service.CheckPointService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/checkPoint")
@Tag(name = "检查点管理", description = "检查点管理API")
public class CheckPointController {

    @Autowired
    private CheckPointService checkPointService;

    @PostMapping("/add")
    public void add(@RequestBody CheckPoint checkPoint) {
        checkPointService.save(checkPoint);
    }
}
